import Vue from 'vue'
import Router from 'vue-router'
import index from '@/components/index'
import login from '@/components/login'
import seniorsearch from '@/components/seniorsearch'
import standdetail from '@/components/standdetail'
import usercenter from '@/components/usercenter'
import pdf from '@/components/pdf'
import shopcar from '@/components/shopcar'
import orderdetail from '@/components/orderdetail'
import newlist from '@/components/newlist'
import newitem from '@/components/newitem'
import noticelist from '@/components/noticelist'
import noticeitem from '@/components/noticeitem'
import changepassword from '@/components/changepassword'
import localstand from '@/components/localstand'
import food from '@/components/food'
import fooddetail from '@/components/fooddetail'
import standnovelty from '@/components/standnovelty'
import standescrow from '@/components/standescrow'
import standconfirm from '@/components/standconfirm'
import bookstore from '@/components/bookstore'
import nationstandard from '@/components/nationstandard'
import projectlist from '@/components/projectlist'
import aboutus from '@/components/aboutus'
import mengstand from '@/components/mengstand'
import vipcenter from '@/components/vipcenter'
import bookdetail from '@/components/bookdetail'
import knowledgelist from '@/components/knowledgelist'
import knowledgeitem from '@/components/knowledgeitem'
import userinfo from '@/components/userinfo'
import userorders from '@/components/userorders'
import purchasedstandard from '@/components/purchasedstandard'
import standardcheck from '@/components/standardcheck'
import standarddetailcheck from '@/components/standarddetailcheck'
import seniorsearchcheck from '@/components/seniorsearchcheck'
import orgafnor from '@/components/orgafnor'
import orgarso from '@/components/orgarso'
import orgastm from '@/components/orgastm'
import orgcen from '@/components/orgcen'
import orgdin from '@/components/orgdin'
import orgfda from '@/components/orgfda'
import orgjisc from '@/components/orgjisc'
import orgjsa from '@/components/orgjsa'
import orgsae from '@/components/orgsae'
import orgtia from '@/components/orgtia'
import city from '@/components/city'
import yqfk from '@/components/yqfk'
import forgetpassword from '@/components/forgetpassword'
import knowledgefg from '@/components/knowledgefg'
import standtx from '@/components/standtx'
import axios from 'axios'

Vue.use(Router)
Vue.prototype.$axios = axios

export default new Router({
  routes: [
    {
      path: '/',
      name: '首页',
      component: index,
      meta: {
        title: '内蒙古标准文献公共服务平台',
        name: 'viewport',
        content: 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0'
      }
    },
    {
      path: '/login',
      name: '登录',
      component: login,
      meta: {
        title: '内蒙古标准文献公共服务平台'
      }
    },
    {
      path: '/seniorsearch',
      name: '高级搜索',
      component: seniorsearch,
      meta: {
        title: '内蒙古标准文献公共服务平台'
      }
    },
    {
      path: '/standdetail',
      name: '标准详情',
      component: standdetail,
      meta: {
        title: '内蒙古标准文献公共服务平台'
      }
    },
    {
      path: '/usercenter',
      name: '用户中心',
      component: usercenter,
      meta: {
        title: '内蒙古标准文献公共服务平台'
      }
    },
    {
      path: '/userinfo',
      component: usercenter,
      children: [
        {path: '/userinfo', component: userinfo}
      ]
    },
    {
      path: '/userorders',
      component: usercenter,
      children: [
        {path: '/userorders', component: userorders}
      ]
    },
    {
      path: '/purchasedstandard',
      component: usercenter,
      children: [
        {path: '/purchasedstandard', component: purchasedstandard}
      ]
    },
    {
      path: '/pdf',
      name: 'PDF预览',
      component: pdf,
      meta: {
        title: '内蒙古标准文献公共服务平台'
      }
    },
    {
      path: '/shopcar',
      name: '购物车',
      component: shopcar,
      meta: {
        title: '内蒙古标准文献公共服务平台'
      }
    },
    {
      path: '/orderdetail',
      name: '订单详情',
      component: orderdetail,
      meta: {
        title: '内蒙古标准文献公共服务平台'
      }
    },
    {
      path: '/newlist',
      name: '新闻列表',
      component: newlist,
      meta: {
        title: '内蒙古标准文献公共服务平台'
      }
    },
    {
      path: '/newitem',
      name: '文章详情',
      component: newitem,
      meta: {
        title: '内蒙古标准文献公共服务平台'
      }
    },
    {
      path: '/noticelist',
      name: '公告列表',
      component: noticelist,
      meta: {
        title: '内蒙古标准文献公共服务平台'
      }
    },
    {
      path: '/noticeitem',
      name: '公告详情',
      component: noticeitem,
      meta: {
        title: '内蒙古标准文献公共服务平台'
      }
    },
    {
      path: '/changepassword',
      name: '修改密码',
      component: changepassword,
      meta: {
        title: '内蒙古标准文献公共服务平台'
      }
    },
    {
      path: '/localstand',
      name: '地方标准免费公开',
      component: localstand,
      meta: {
        title: '内蒙古标准文献公共服务平台'
      }
    },
    {
      path: '/food',
      name: '食品标准公开',
      component: food,
      meta: {
        title: '内蒙古标准文献公共服务平台'
      }
    },
    {
      path: '/fooddetail',
      name: '食品标准详情',
      component: fooddetail,
      meta: {
        title: '内蒙古标准文献公共服务平台'
      }
    },
    {
      path: '/standnovelty',
      name: '标准查新',
      component: standnovelty,
      meta: {
        title: '内蒙古标准文献公共服务平台'
      }
    },
    {
      path: '/standescrow',
      name: '标准托管',
      component: standescrow,
      meta: {
        title: '内蒙古标准文献公共服务平台'
      }
    },
    {
      path: '/standconfirm',
      name: '标准时效性确认',
      component: standconfirm,
      meta: {
        title: '内蒙古标准文献公共服务平台'
      }
    },
    {
      path: '/bookstore',
      name: '标准书店',
      component: bookstore,
      meta: {
        title: '内蒙古标准文献公共服务平台'
      }
    },
    {
      path: '/nationstandard',
      name: '国家标准',
      component: nationstandard,
      meta: {
        title: '内蒙古标准文献公共服务平台'
      }
    },
    {
      path: '/projectlist',
      name: '项目研究',
      component: projectlist,
      meta: {
        title: '内蒙古标准文献公共服务平台'
      }
    },
    {
      path: '/aboutus',
      name: '关于我们',
      component: aboutus,
      meta: {
        title: '内蒙古标准文献公共服务平台'
      }
    },
    {
      path: '/mengstand',
      name: '蒙字标',
      component: mengstand,
      meta: {
        title: '内蒙古标准文献公共服务平台'
      }
    },
    {
      path: '/vipcenter',
      name: '会员中心',
      component: vipcenter,
      meta: {
        title: '内蒙古标准文献公共服务平台'
      }
    },
    {
      path: '/bookdetail',
      name: '图书详情',
      component: bookdetail,
      meta: {
        title: '内蒙古标准文献公共服务平台'
      }
    },
    {
      path: '/knowledgelist',
      name: '知识库列表',
      component: knowledgelist,
      meta: {
        title: '内蒙古标准文献公共服务平台'
      }
    },
    {
      path: '/knowledgeitem',
      name: '知识库详情',
      component: knowledgeitem,
      meta: {
        title: '内蒙古标准文献公共服务平台'
      }
    },
    {
      path: '/standardcheck',
      name: '地方标准jc',
      component: standardcheck,
      meta: {
        title: '内蒙古标准文献公共服务平台'
      }
    },
    {
      path: '/standarddetailcheck',
      name: '地方标准详情jc',
      component: standarddetailcheck,
      meta: {
        title: '内蒙古标准文献公共服务平台'
      }
    },
    {
      path: '/seniorsearchcheck',
      name: '规范性引用文件查询jc',
      component: seniorsearchcheck,
      meta: {
        title: '内蒙古标准文献公共服务平台'
      }
    },
    {
      path: '/orgafnor',
      name: '法国标准化协会',
      component: orgafnor,
      meta: {
        title: '内蒙古标准文献公共服务平台'
      }
    },
    {
      path: '/orgarso',
      name: '非洲地区标准化组织',
      component: orgarso,
      meta: {
        title: '内蒙古标准文献公共服务平台'
      }
    }, {
      path: '/orgastm',
      name: '美国试验与材料协会',
      component: orgastm,
      meta: {
        title: '内蒙古标准文献公共服务平台'
      }
    }, {
      path: '/orgcen',
      name: '欧洲标准化委员会',
      component: orgcen,
      meta: {
        title: '内蒙古标准文献公共服务平台'
      }
    }, {
      path: '/orgdin',
      name: '德国标准化学会',
      component: orgdin,
      meta: {
        title: '内蒙古标准文献公共服务平台'
      }
    }, {
      path: '/orgfda',
      name: '美国食品与药物管理局',
      component: orgfda,
      meta: {
        title: '内蒙古标准文献公共服务平台'
      }
    }, {
      path: '/orgjisc',
      name: '日本工业标准调查会',
      component: orgjisc,
      meta: {
        title: '内蒙古标准文献公共服务平台'
      }
    }, {
      path: '/orgjsa',
      name: '日本规格协会',
      component: orgjsa,
      meta: {
        title: '内蒙古标准文献公共服务平台'
      }
    }, {
      path: '/orgsae',
      name: '美国机动车工程师协会',
      component: orgsae,
      meta: {
        title: '内蒙古标准文献公共服务平台'
      }
    }, {
      path: '/orgtia',
      name: '美国电信工业协会',
      component: orgtia,
      meta: {
        title: '内蒙古标准文献公共服务平台'
      }
    }, {
      path: '/city',
      name: '市级地方标准',
      component: city,
      meta: {
        title: '内蒙古标准文献公共服务平台'
      }
    }, {
      path: '/forgetpassword',
      name: '忘记密码',
      component: forgetpassword,
      meta: {
        title: '内蒙古标准文献公共服务平台'
      }
    }, {
      path: '/knowledgefg',
      name: '知识法规',
      component: knowledgefg,
      meta: {
        title: '内蒙古标准文献公共服务平台'
      }
    }, {
      path: '/yqfk',
      name: '疫情防控',
      component: yqfk,
      meta: {
        title: '疫情防控'
      }
    }, {
      path: '/standtx',
      name: '标准体系',
      component: standtx,
      meta: {
        title: '标准体系'
      }
    }
  ]
})
